import request from '@/utils/request'

// 查询公寓人才折扣列表
export function listEnjoy(query) {
  return request({
    url: '/room/enjoy/list',
    method: 'get',
    params: query
  })
}

// 查询公寓人才折扣详细
export function getEnjoy(enjoyId) {
  return request({
    url: '/room/enjoy/' + enjoyId,
    method: 'get'
  })
}

// 新增公寓人才折扣
export function addEnjoy(data) {
  return request({
    url: '/room/enjoy',
    method: 'post',
    data: data
  })
}

// 修改公寓人才折扣
export function updateEnjoy(data) {
  return request({
    url: '/room/enjoy',
    method: 'put',
    data: data
  })
}

// 删除公寓人才折扣
export function delEnjoy(enjoyId) {
  return request({
    url: '/room/enjoy/' + enjoyId,
    method: 'delete'
  })
}
